<template>
  <div>
    <van-cell class="article-item">
      <template #title>
        <div class="head">
          <p class="title">{{list[0].title}}</p>
          <van-row>
            <van-col span="18">{{list[0].pubdate}}</van-col>
            <van-col span="6"> <img :src="list[0].cover.images" alt="" />11111111</van-col>
          </van-row>
          <div class="foot">{{list[0].aut_name}}   {{list[0].comm_count}}评论     8小时内</div>
        </div>
      </template>
    </van-cell>
  </div>
</template>
<script>
import { getArticles } from '@/api/user'
export default {
  data () {
    return {
      list: []
    }
  },
  async created () {
    console.log(11111)
    const res = await getArticles()
    console.log(res.data.data.results)
    this.list = res.data.data.results
  }
}
</script>
<style>
</style>
